﻿using UnityEngine;
using System.Collections;

public class Menu : MonoBehaviour {
	
	//fundo
	public Texture2D bg;
	public int bgPositionX;
	public int bgPositionY;
	
	//buton
	public int buttonPositionX;
	public int buttonPositionY;
	public GUISkin guiskin;
	
	void Start () 
	{
		//fundo
		bgPositionX = Screen.width / 2 - 400;
		bgPositionY = 0;	
	
		//button
		buttonPositionX = Screen.width / 2;
		buttonPositionY = 400;
		
	}
	
	void Update () 
	{
	
	}
	
	void OnGUI()
	{
		GUI.DrawTexture(new Rect(bgPositionX, bgPositionY, 800, 600), bg);
				
		GUI.skin = guiskin;
        if(GUI.Button(new Rect(buttonPositionX, buttonPositionY, 91, 67),""))
		{
			Application.LoadLevel("Tela_3");
		}
	}
}
